package com.tz.farmer.config;

import cn.hutool.core.map.MapUtil;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author fengy
 * @since 2023/3/26 026
 */
@Component
@ConfigurationProperties(prefix = "sso")
@Data
public class SsoProperties {

    /**
     * 用户名映射，key为对方用户名，value为本系统用户名
     */
    private Map<String, String> userMap = MapUtil.of("admin", "admin");

    /**
     * 加解密密钥
     */
    private String secKey = "qc1mR64CzdQ=";

    /**
     * 认证成功跳转地址
     */
    private String successPath = "redirect:http://39.175.127.45:18888/farmerweb/";

    /**
     * 认证失败跳转地址
     */
    private String faildPath = "403.html";
}
